package org.krishna.model;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "ohrm_employment_status")
public class JobStatus implements Serializable{
	
	/** The Constant serialVersionUID. */
	@Transient
	private static final long serialVersionUID = -7660824605183781430L;
	
	@Id
	@GeneratedValue
	@Column(name = "id")
	private int jobStatusId;
	
	@Column(name = "name")
	private String jobStatusName;	
	
	
	@OneToMany(fetch = FetchType.LAZY,mappedBy = "jobStatus")
	private Set<Employee> employees;


	public int getJobStatusId() {
		return jobStatusId;
	}


	public void setJobStatusId(int jobStatusId) {
		this.jobStatusId = jobStatusId;
	}


	public String getJobStatusName() {
		return jobStatusName;
	}


	public void setJobStatusName(String jobStatusName) {
		this.jobStatusName = jobStatusName;
	}


	public Set<Employee> getEmployees() {
		return employees;
	}


	public void setEmployees(Set<Employee> employees) {
		this.employees = employees;
	}
	
}
